package apirouter

import (
	"slgw_web/api"

	"openzbox.com/frame/echo"
	"openzbox.com/frame/echo/middleware"
)

func InitSerialRouter(group *echo.Group) {
	router := group.Group("/Serial") //, middleware.AuthMiddleware()

	router.GET("/GetSerialInfo", api.GetSerialInfo, middleware.AuthMiddleware()) //, middleware.AuthMiddleware()
	router.POST("/EditSeria", api.EditSeria, middleware.AuthMiddleware())
	router.POST("/EditSeriaSlave", api.EditSeriaSlave, middleware.AuthMiddleware())
	router.POST("/EidtSeriaSlaveDetail", api.EidtSeriaSlaveDetail, middleware.AuthMiddleware())
	router.POST("/DeleteSeria", api.DeleteSeria, middleware.AuthMiddleware())
	router.POST("/DeleteSeriaSlave", api.DeleteSeriaSlave, middleware.AuthMiddleware())
	router.POST("/DeleteSeriaSlaveDetail", api.DeleteSeriaSlaveDetail, middleware.AuthMiddleware())
	router.POST("/Restart", api.Restart) //重启系统
	router.GET("/GetTPITV", api.GetTPITV, middleware.AuthMiddleware())
	router.POST("/EidtTPITV", api.EidtTPITV, middleware.AuthMiddleware())
	router.GET("/ExportData", api.ExportData)
	router.POST("/UplaodData", api.UplaodData)
	router.GET("/Test", api.Test)

}
